// 多选，单选组件搜索过滤函数
export function filterOption(input, option) {
    return (
        option.componentOptions.children[0].text
            .toLowerCase()
            .indexOf(input.toLowerCase()) >= 0
    );
}

/**
 * 公共是否枚举
 */
export const torf = [
    {
        label: "是",
        value: 0,
        color: "blue"
    },
    {
        label: "否",
        value: 1,
        color: ""
    }
]

/**
 * 公共是否枚举
 */
export const torfs = [
    {
        label: "是",
        value: 1,
        color: "blue"
    },
    {
        label: "否",
        value: 2,
        color: ""
    }
]